
import * as THREE from 'three'
import { merge } from "lodash"

export class Light {
  #defaultOptions = {
    a: "#fff",
    o: 1,
  }
  constructor(globe) {
    this.globe = globe;
    this.options = merge({}, this.#defaultOptions, globe.options.light);
    return this.buildLight()
  }

  buildLight() {
    this.light = new THREE.AmbientLight(this.options.a, this.options.o)
    this.globe.scene.add(this.light)
    return this.light
  }

  draw() {
  }

  render() {
  }

}